define([
	'jquery', 
	'underscore', 
	'backbone'
], function($,_,Backbone){
	var User = Backbone.Model.extend({
		defaults:{
			name: null
		},
		initialize: function(){
			console.log("Hello");
			this.bind("error", function(model, err){
				console.log(err);
			});
			this.bind("change: name", function(model){
				console.log("Confirm change your name to: "+model.get("name"));
			});
		},
		setName: function(iname){
			
		},
		validate: function(attrs){
			if(!attrs.name){
				return "EMPTY NAME";
			}
		}
	});
	return User;
});